package com.kevin.learn.策略模式.工厂加策略;

public class FactorRewardStrategyFactory extends StrategyFactory {

    @Override
    RewardStrategy createStrategy(Class c) {
        RewardStrategy product = null;
        try {
            product = (RewardStrategy) Class.forName(c.getName()).newInstance();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return product;
    }
}
